 
package com.zdkj.subway.rca.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zdkj.subway.rca.entity.SwCkSysCleaningConsTicket;
import com.zdkj.subway.rca.mapper.SwCkSysCleaningConsTicketMapper;
import com.zdkj.subway.rca.service.SwCkSysCleaningConsTicketService;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 消费类分账统计数据-按票种
 *
 * @author zdkj code generator
 * @date 2020-12-06 23:35:27
 */
@Service
public class SwCkSysCleaningConsTicketServiceImpl extends ServiceImpl<SwCkSysCleaningConsTicketMapper, SwCkSysCleaningConsTicket> implements SwCkSysCleaningConsTicketService {
   @Override
    public List<String> selectServiceOrgList(String startDate, String endDate) {
        return this.baseMapper.selectServiceOrgList(startDate,endDate);
    }
   @Override
   public List<String> selectServiceIdList(){
	   return this.baseMapper.selectServiceIdList();
   }

    @Override
    public List<String> selectLineListByService(String startDate, String endDate,String serviceOrg) {
        return this.baseMapper.selectLineListByService(startDate,endDate,serviceOrg);
    }

    @Override
    public Map<String, String> getServiceOrgByLine(String lineCode) {
        return this.baseMapper.getServiceOrgByLine(lineCode);
    }


    @Override
    public String getSubwayServiceIdByName(String serviceName) {
       return this.baseMapper.getSubwayServiceIdByName(serviceName);
    }

    @Override
    public Map<String, Object> getDailyReportMap(String startDate, String endDate, String lineCode,String serviceId) {
    	//根据线路查找属于哪个serviceid
        //Map<String, String> serviceMap = this.baseMapper.getServiceOrgByLine(lineCode); 前面已经查过一次，不再查询
        //if("1".equals(serviceMap.get("serviceId"))){//西安地铁
		if("1".equals(serviceId)){//西安地铁
            return this.baseMapper.getDailyReportMap(startDate,endDate,lineCode);
        }else if("71".equals(serviceId)){//西咸 
            return this.baseMapper.getDailyReportMap(startDate,endDate,lineCode);
        }else if("49".equals(serviceId)){//西安中铁 9号线
            return this.baseMapper.getOtherXaztOperatorsDailyReportMap(startDate,endDate,lineCode);
        } else { //城际铁路
            return this.baseMapper.getOtherOperatorsDailyReportMap(startDate,endDate,lineCode);
        }
    }

	@Override
    public Map<String,BigDecimal> getXasubwayCatTicketPayCardAndTrafficCardMap(String startDate, String endDate, String lineCode) {
	    return this.baseMapper.getXasubwayCatTicketPayCardAndTrafficCardMap(startDate,endDate,lineCode);
	}

    @Override
    public BigDecimal getB3(String startDate, String endDate, String lineCode) {
        return this.baseMapper.getB3(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getB4(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getB4(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getB5(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getB5(startDate,endDate,lineCode);
    }
    @Override
    public Long getB6(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getB6(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getC1(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getC1(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getC2(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getC2(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getC3(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getC3(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getC4(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getC4(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getC5(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getC5(startDate,endDate,lineCode);
    }
	@Override
    public BigDecimal getC61(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getC61(startDate,endDate,lineCode);
    }
    @Override
    public Long getD8(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getD8(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getE1(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getE1(startDate,endDate,lineCode);
    }
    @Override
    public BigDecimal getF1(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getF1(startDate,endDate,lineCode);
    }
	@Override
    public List<Map<String,Object>> getE2F2(String startDate, String endDate) {
        return this.baseMapper.getE2F2(startDate,endDate);
    }
    @Override
    public BigDecimal getG4(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getG4(startDate,endDate,lineCode);
    }
    @Override
    public Long getG5(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getG5(startDate,endDate,lineCode);
    }
    @Override
    public Long getG6(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getG6(startDate,endDate,lineCode);
    }
    @Override
    public Long getG7(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getG7(startDate,endDate,lineCode);
    }
	@Override
    public Long getG9(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getG9(startDate,endDate,lineCode);
    }	

    @Override
    public BigDecimal getH2(String startDate, String endDate,String lineCode) {
        return this.baseMapper.getH2(startDate,endDate,lineCode);
    }
    
    //清分规则，获取ACC接口中日票清分次数   20210810
    @Override
    public List<Map<String,Object>> getAccDailySpecialTicketMap(String startDate, String endDate){
    	return this.baseMapper.getAccDailySpecialTicketMap(startDate, endDate);
    }
  	 //清分规则，获取ACC接口中纪念票清分次数  
    @Override
    public List<Map<String,Object>> getAccSouvenirSpecialTicketMap(String startDate, String endDate){
    	return this.baseMapper.getAccSouvenirSpecialTicketMap(startDate, endDate);
    }
  	 //清分规则，获取ACC接口中计次票清分次数  
    @Override
    public List<Map<String,Object>> getAccCountingSpecialTicketMap(String startDate, String endDate){
    	return this.baseMapper.getAccCountingSpecialTicketMap(startDate, endDate);
    }
}
